
public class indexofstring {

	
		   public static void main(String[] args) {
		      String strOrig = "Do you quarrel, sir ";
		      int intIndex = strOrig.indexOf("you sir");
		      if(intIndex == - 1){
		         System.out.println("Hello not found");
		      }else{
		         System.out.println("Found Hello at index "
		         + intIndex);
		      }
		   }
		
}
